var express = require('express');
var router = express.Router();
const {
  getClassify,
  addClassify,
  getOneClassify,
  updateClassify,
  deleteClassify,
} = require('../controllers/classify');

//新增分类
router.post('/addOneClassify', addClassify);
//获取分类
router.get('/lookAllClassify', getClassify);
//获取一个
router.post('/getOneClassify', getOneClassify);
//修改数据
router.post('/updataOneClassify', updateClassify);
//删除数据
router.post('/deleteOneClassify', deleteClassify);
module.exports = router;
